package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

@TableName("qm_hd_danger_zjxny")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class QmDanger extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("检查人")
    @Excel(name = "检查人")
    private String CreateChnName;

    @ApiModelProperty("检查时间")
    @Excel(name = "检查时间")
    private Date CreateDate;

    @ApiModelProperty("隐患区域")
    @Excel(name = "隐患区域")
    private String HiddenDangerArea;

    @ApiModelProperty("隐患描述")
    @Excel(name = "隐患描述")
    private String HiddenDangerDesc;

    @ApiModelProperty("隐患大分类")
    @Excel(name = "隐患大分类")
    private String LgdName;

    @ApiModelProperty("隐患小分类")
    @Excel(name = "隐患小分类")
    private String mixLgdName;

    @ApiModelProperty("隐患性质")
    @Excel(name = "隐患性质")
    private String HiddenDangerTypeName;

    @ApiModelProperty("整改建议")
    @Excel(name = "整改建议")
    private String CorrectiveAdvise;

    @ApiModelProperty("计划整改期限")
    @Excel(name = "计划整改期限")
    private Date CorrectiveDate;

    @ApiModelProperty("整改部门/人")
    @Excel(name = "整改部人")
    private String CorrectiveUserOrDept;

    @ApiModelProperty("整改部门")
//    @Excel(name = "整改部门")
    private String CorrectiveTopDeptName;

    @ApiModelProperty("验收人")
    @Excel(name = "验收人")
    private String VerifyChnName;

    @ApiModelProperty("验收时间")
    @Excel(name = "验收时间")
    private Date VerifyDate;

    @ApiModelProperty("整改前附件")
    @Excel(name = "整改前附件")
    private String BeforeAttachs;

    @ApiModelProperty("整改后附件")
    @Excel(name = "整改后附件")
    private String AfterAttachs;

    @ApiModelProperty("最新当前处理状态")
    @Excel(name = "最新当前处理状态")
    private String StatusName;

    @ApiModelProperty("责任人ID")
    private Long userId;

    @ApiModelProperty("责任人")
    @Excel(name = "责任人")
    private String userName;
}
